<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--====== USEFULL META ======-->
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--====== TITLE TAG ======-->
<title>历史记录</title>
<link rel="shortcut icon" type="image/ico" href="images/favicon.png" th:href="@{/images/favicon.png}"/>
<!--====== STYLESHEETS ======-->
<link rel="stylesheet" href="css/font-awesome-min.css" th:href="@{/css/font-awesome-min.css}">
<link rel="stylesheet" href="css/bootstrap-min.css" th:href="@{/css/bootstrap-min.css}">
<link rel="stylesheet" href="css/normalize.css" th:href="@{/css/normalize.css}">
<link rel="stylesheet" href="css/animate.css" th:href="@{/css/animate.css}">
<link rel="stylesheet" href="css/lity.css" th:href="@{/css/lity.css}">
<link rel="stylesheet" href="css/slick-nav.css" th:href="@{/css/slick-nav.css}">
<link rel="stylesheet" href="css/slick-slider.css" th:href="@{/css/slick-slider.css}">
<link rel="stylesheet" href="css/theme.css" th:href="@{/css/theme.css}">
<!--====== MAIN STYLESHEET ======-->
<link href="style.css" rel="stylesheet" th:href="@{/style.css}">
<link href="css/responsive.css" rel="stylesheet" th:href="@{/css/responsive.css}">
<script src="js/vendor/modernizr.js"></script>
</head>

<body data-spy="scroll" data-target=".mainmenu-area" data-offset="50">

<!-- Page cursor -->
<div class='cursor' id="cursor"></div>
<div class='cursor2' id="cursor2"></div>
<div class='cursor3' id="cursor3"></div>
<!-- Preloader-Content -->
<div class="preloader">
	<img th:src="@{/images/preloader.gif}" src="images/preloader.gif" alt="preloader">
</div>
<!-- Popup-Search-Form -->

<!-- Popup-Search-Form-End -->
<!-- Full-Wrapper-Start -->
<div class="full-wrapper">

	<!-- Mainmenu-Area-Start -->
	<div th:replace="~{commons/bar :: topbar}"></div>
	
	<div class="live_wrap">
		<div class="u_header">
			<h1>个人中心</h1>
		</div>

		<div>
			<div th:replace="~{commons/bar :: left(active='History')}"></div>
			
			
			<div class="u_mainbody">
				<div class="user_myprofile user_info_page">

					<div class="togglebtn clearfix ">
						<i class="f1"></i>
						<p class="f1 " style="padding-top: 4px;">历史记录</p>
					</div>
					
					
				</div>
				
				<div  class="consume_nr" style="display:block">
					<table cellspacing="0" cellpadding="0" class="aui_room_table">
						<thead>
							<tr>
								<th width="7%">序号</th>
								<th width="73%">商品名称</th>
								<th width="20%">点击时间</th>
							</tr>
						</thead>
						<tbody>
							<tr th:if="${emps != null}" th:each="emp : ${emps}">
								<td th:text="${emp.id}">167</td>
								<td style="padding-top: 3px;" ><a target="_blank" th:href="${emp.url}" th:text="${emp.goodsname}" ></a> </td>
								<td th:text="${#dates.format(emp.dtime , 'yyyy-MM-dd HH:mm')}">2020-12-12 25:34:50</td>
							</tr>
							<tr  th:if="${emps == null}">
								<td></td>
								<td style="text-align: center">暂无历史记录</td>
								<td></td>
							</tr>
						</tbody>
					</table>
					<p th:if="${emps != null}" class="page fr">
						<span id="page-link">
							<a th:if="${pagenum != 1}" th:href="@{/tohistory/1}">首页</a>
							<a th:if="${pagenum != 1}" th:href="@{/tohistory/} + ${pagenum-1}">上一页</a>
							<a th:text="${pagenum}" th:href="@{/tohistory/}+${pagenum}" class="ui-button current ui-state-disabled">1</a>
							<a th:if="${pagenum != count}" th:text="${pagenum + 1}" th:href="@{/tohistory/}+${pagenum+1}">2</a>
							<span th:if="${pagenum != count}">. . . .</span>
							<a th:if="${ pagenum != count}" th:text="${count}" th:href="@{/tohistory/}+${count}"></a>
							<a th:text="${pagenum != count}?'下一页':'已到尾页'" th:href="@{/tohistory/}+${pagenum+1}">下一页</a>
						</span>
					</p>
				</div>
				
			</div>
		</div>
		
	</div>


	
	<footer class="footer-area rboom">
		
		<div class="footer-bottom">
			<div class="container">
				<div class="row">
					<div class="col-lg-6 offset-lg-3 text-center">
						<div class="copyright">
							<p>Copyright &copy; 2020. Bi Jia Wang All rights reserved.</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</footer>
	<form id="zx" action="/mylogout" th:action="@{/mylogout}" th:method="post">

	</form>
</div>
<!-- Full-Wrapper-End -->
<!--=======  SCRIPTS =======-->
<script th:src="@{/js/vendor/jquery-min.js}" src="js/vendor/jquery-min.js"></script>
<!--=======  PLUGINS =======-->
<script th:src="@{/js/popper-min.js}" src="js/popper-min.js"></script>
<script th:src="@{/js/bootstrap-min.js}" src="js/bootstrap-min.js"></script>
<script th:src="@{/js/lity-min.js}" src="js/lity-min.js"></script>
<script th:src="@{/js/slick-slider-min.js}" src="js/slick-slider-min.js"></script>
<script th:src="@{/js/slick-nav.js}" src="js/slick-nav.js"></script>
<script th:src="@{/js/wow-min.js}" src="js/wow-min.js"></script>
<!--=======  ACTIVE JS =======-->
<script th:src="@{/js/script.js}" src="js/script.js"></script>
<!--=======  ACTIVE JS =======-->
<script>
	function abc() {
		$("#zx").submit();
	}
</script>
</body>


</html>
